package demo;

public class Text42 {
    public static void main(String[] args) {
        //判断101-200之间有多少质数，并打印、、boolean,
        for (int i = 101; i <= 200; i++) {
            boolean flag = true;
            for (int j = 2; j < i; j++) {
                int count = 0;
                if (i % j == 0) {
                    flag = false;
                    break;
                }
            }if(flag){
                System.out.println("当前"+i+"是质数");
            }
        }
    }
}